<%--
  Created by IntelliJ IDEA.
  User: ggranum
  Date: Sep 30, 2007
  Time: 12:00:35 AM

--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="agent" uri="http://gettestfire.org/taglibs/agent" %>

<html>
<head><title>Submit Testset</title>

</head>
<body>
<c:if test="${!empty param.action}">
    <agent:submitHandler action="${param.action}"/>
</c:if>

<c:choose>

    <c:when test="${empty param.userName}">
        <h3>Username required for this action:</h3><br/><br/><br/>

        <form name="list_form" action="testsetManager.jsp" method="post">
            <label for="userName">UserName: </label>
            <input id="userName" type="text" name="userName" size="20" value="${param.userName}">
            <input type="submit" value="Go"/>
        </form>
    </c:when>
    <c:otherwise>
        <agent:list_testsets userName="${param.userName}" useForm="${empty param.noform || param.noform == false}"/>
    </c:otherwise>

</c:choose>
</body>
</html>